class Admin::ProfileController < ApplicationController
  
  layout "admin"
  
  helper :button
  
  before_filter :login_required
  
  def index
    @user = current_user
  end

  def update
    @user = User.find(params[:id])
    if @user.update_attributes(params[:user])
      flash[:notice] = "Your profile was successfully saved."
      redirect_to :back
    else
      render :action => 'index'
    end
  end
end
